/*
 * Copyright (c) 2022 Queclink-C-Library
 *
 * This file is subject to the terms and conditions of the MIT License.
 * For details, please see the LICENSE file or visit the MIT website: https://mit-license.org/
 */

#ifndef QLIBC_VERSION_H
#define QLIBC_VERSION_H

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @addtogroup version
 * @ingroup common
 * @brief Declare by `#include <qlibc/version.h>`. Get the version number of Queclink C library.
 * @{
 */

/**
 * @brief   Get the version number of Queclink C library.
 * @param[out] vstr The version number in string format, such as "1.3.0", it will take up to 8 bytes.
 * @authors Hubert.Lee
 * @date    2022/4/1
 */
void quec_getv(char *vstr);

/**
 * @brief   Get the release time of this version of Queclink C library.
 * @param[out] tagtime The release time in the string format "yyyy/mm/dd hh:mm:ss", it always occupies 20 bytes.
 * @authors Hubert.Lee
 * @date    2022/9/16
 */
void quec_getv_tagtime(char *tagtime);

/** version
 * @}
 */

#ifdef __cplusplus
}
#endif

#endif /* QLIBC_VERSION_H */
